package lainformacion;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lainformacion.Article;

@Entity
@Table(name = "article")
public class ArticleMySQL extends Article {

	private static final long serialVersionUID = 1L;

	public ArticleMySQL(){
		super();
	}
	
	public ArticleMySQL(int id, String title, String text, String url) {
		super();
		this.id = id;
		this.title = title;
		this.text = text;
		this.url = url;
	}
	
	@Override
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "articleId")
	public int getId() {
		return id;
	}
}
